//
//  GQProfileMyCollectionController.m
//  GuQu
//
//  Created by HELIUM STAR on 15/5/27.
//  Copyright (c) 2015年 HELIUM STAR. All rights reserved.
//

#import "GQProfileMyDistributeController.h"
#import "GQHomeViewCell.h"

@interface GQProfileMyDistributeController ()

@end

@implementation GQProfileMyDistributeController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.tableView registerClass:[GQHomeViewCell class] forCellReuseIdentifier:@"flag"];
    self.title = @"我的发布";
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageWithOriginalName:@"distribute_back"] style:UIBarButtonItemStylePlain target:self action:@selector(backToPre)];
}

- (void)backToPre
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 5;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    GQHomeViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"flag" forIndexPath:indexPath];
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 490;
}

- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
    return YES;
}

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return @"删除";
}


@end
